<template>
  <div class="child">
    <p>{{infoStore.count}}</p>
<!--    total是一个Object-->
    <p>{{infoStore.total}}</p>
    <button @click="updateCount">修改仓库count</button>
  </div>
</template>

<script setup lang="ts">
import useInfoStore from "@/store/modules/info";

let infoStore = useInfoStore();
console.log(infoStore);

const updateCount = () => {
  infoStore.count++;
  infoStore.updateCount(2, 3);
}
</script>

<style scoped>
.child {
  width: 200px;
  height: 200px;
  background: yellowgreen;
}
</style>